package io.kumao.gateway.model;

import lombok.Data;
import org.springframework.http.HttpStatus;
import org.springframework.web.util.pattern.PathPattern;

/**
 * 限制配置.
 *
 * @author 崔作利
 */
@Data
public class RateLimitConfig {
    private String path;
    private Integer replenishRate;
    private Integer burstCapacity;
    private Integer requestedTokens;
    private PathPattern pathPattern;
    private HttpStatus statusCode = HttpStatus.TOO_MANY_REQUESTS;
}